# -*- coding: utf-8 -*-
# !/usr/bin/env python
from rest_framework.views import APIView
from components.resource_management.host_soft.dao import query_hosts_soft
from utils.views import Result

class HostSoft(APIView):
    def get(self, request):
        data = request.query_params
        host_data_list = []
        if data['host_id']:
            host_data_list = query_hosts_soft(data['host_id'])
        return Result.success_response(data=host_data_list, msg='查询成功')